import React from 'react';
import { BrowserRouter as Router, Switch, Route } from 'react-router-dom';
import { hot } from 'react-hot-loader';
import Login from '../page/Login'
import Admin from '../page/Admin';
import Logout from '../page/Logout';

export default hot(module)(
    () => (
        <Router>
            <div className="main-wrap">
                <Switch>
                    <Route exact path="/login" component={Login} />
                    <Route exact path="/logout" component={Logout} />
                    <Route exact path="/*" component={Admin} />
                </Switch>
            </div>
        </Router>
    )
);